Search results
14 packages found
Ensure a function is only called once
Nuanced implementation of 'once' functionality, optimized for node.js
Once.js is a 0.1kb micro-library that enables you to enforce a function can only be executed once. Once.js completely dependency-free and written in both CoffeeScript and JavaScript for AMD, Node.js and the Web.
A micro typescript library for ensuring that a function is called only once.
call MutationObserver.observe() for single object (the last one), default for single attribute.
Create a filled array according to a provided callback function.
- stdlib
- stdtypes
- types
- data
- structure
- typed
- array
- typed array
- typed-array
- vector
- ndarray
- matrix
- float64array
- float32array
- View more
Ensure a function is only called once. This is a fork of sindresorhus/onetime, but with CommonJS support.
the simplest way to call a function once
CJS version: Ensure a function is only called once
CommonJS version of onetime 6.0.0. See https://github.com/mifi/commonify
Efficiently use an Observer (i.e. IntersectionObserver) without the ugly observer callback. `insular-observer` gives you a simple, per-target `observe/unobserve` API that uses the same observer instance internally.
- IntersectionObserver
- ResizeObserver
- Observer
- observe
- callback
- listener
- one
- single
- element
- target
- just
- only
- better
- API
Run a function exactly one time and show stack traces when second call occurs
Combine multiple APIs into single, call each API, and return a set of responses.
open new tab instead of create a new app instance when click the system-context-menu or call to hyper.exe